<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>Job Type Management</title>
</head>
<body>
<div class="container-fluid my-5">
    <h1 class="mb-4">Job Type Management</h1>
    <form>
        <div class="row g-3 align-items-end d-xl-flex my-3" id="jobTypeCondition">

        </div>
    </form>
    <div id="jobTypeOperation" role="group" class="btn-group" aria-label="jobType">
    </div>
    <table class="table table-striped" id="jobTypeTable">
        <thead>
        </thead>
        <tbody>
        </tbody>
    </table>
    <div id="pagination" class="d-flex justify-content-between align-items-center pagination"></div>
</div>

<div class="modal fade" id="jobTypeModal" tabindex="-1" aria-labelledby="modalLabel" aria-hidden="true">
    <div class="modal-dialog  modal-fullscreen">
        <form id="jobTypeDataForm" class="modal-content needs-validation" novalidate>
            <div class="modal-header">
                <h5 class="modal-title" id="modalLabel">Add jobType</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body  row">
                <input type="hidden" id="jobTypeId"/>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal"> Cancel</button>
                <button type="button" class="btn btn-primary" id="saveJobTypeBtn"> Save</button>
            </div>
        </form>
    </div>
</div>
<div class="modal fade" id="dualListModal" tabindex="-1" aria-labelledby="dualListModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">Manage Items</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <div class="row">
                    <!-- Left list -->
                    <div class="col-md-6">
                        <h6>Available Items</h6>
                        <ul class="list-group" id="leftList">
                        </ul>
                    </div>
                    <!-- Right list -->
                    <div class="col-md-6">
                        <h6>Selected Items (Reorderable)</h6>
                        <ul class="list-group" id="rightList">
                            <!-- Dynamically filled -->
                        </ul>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
                <button class="btn btn-success" onclick="submitSelection()">Save</button>
            </div>
        </div>
    </div>
</div>
<div class="toast-container position-fixed bottom-0 end-0 p-3" id="_toastContainer"></div>

<script src="../js/common.js"></script>
<script src="js/jobtype.js"></script>
</body>
</html>